package com.example.shaoying.yuejian.service;

/**
 * Created by ShaoYing on 2017/10/9.
 */
import com.example.shaoying.yuejian.javabean.AskList;
import com.example.shaoying.yuejian.javabean.ClubList;
import com.example.shaoying.yuejian.javabean.DetailAcyivity;
import com.example.shaoying.yuejian.javabean.Game;
import com.example.shaoying.yuejian.javabean.ListResult;
import com.example.shaoying.yuejian.javabean.TeaInfo;
import com.example.shaoying.yuejian.javabean.TeaList;
import com.example.shaoying.yuejian.javabean.Train;
import com.example.shaoying.yuejian.javabean.TrainInfo;
import com.example.shaoying.yuejian.javabean.VideoList;

import java.util.List;

import retrofit2.Call;
import retrofit2.http.GET;
import retrofit2.http.POST;
import retrofit2.http.Query;

public interface activityService {

    /**
     * 首页推荐列表
     * */
    @GET("lists")
    Call<List<ListResult>> getActList();
    /**
     * 首页推荐列表活动详情
     * */
   @GET("get/mod/activity/")
    Call<DetailAcyivity> getActDetail(@Query("id") String id);

    /**
     * 大师列表
     * */
    @GET("lists/mod/master/")
    Call<List<TeaList>> getTeaList(@Query("page") int page);
    /**
     * 问大师列表
     * http://172.24.10.175/workout/api.php/lists/mod/masterfaq/master_id/2
     * */
  @POST("lists/mod/masterfaq/")
    Call<List<AskList>> getAskList(@Query("master_id") String master_id);
  /*
  问大师http:/http://172.24.10.175/workout/api.php/create/mod/masterfaq/master_id/1/user_id/123/question/11111
   */
  @GET("create/mod/masterfaq/")
  Call<Integer> problem(
          @Query("master_id") String master_id,
          @Query("user_id") String user_id,
          @Query("question") String question
          );
    /**
     * 大师详情列表
     * */
    @POST("get/mod/master/")
    Call<TeaInfo> getTeaInfo(@Query("id") String id);
    /**
     * 大师视频列表
     * http://172.24.10.175/workout/api.php/get/mod/master/related/1/id/1/map/mvideo
     * */
  @GET("get/mod/master/related/1/")
    Call<VideoList> getVideoList(@Query("id" )String id, @Query("map") String mvideo);
/*
*       比赛列表
* */
    @GET("lists/mod/contest")
    Call<List<Game>>getlistsGame();

}
